#ifndef __TOUCH__
#define __TOUCH__

#include "gpio.h"

void delay_us(uint32_t value);
void t_cs(uint8_t value);
void t_sck(uint8_t value);
void t_mosi(uint8_t value);
uint8_t t_miso();
void t_pen(uint8_t value);
uint16_t t_write_and_read_ad(uint8_t command);

void t_calibration();
void t_get_position(uint16_t *x, uint16_t *y);
void t_set_calibration_value(double,double,uint16_t,uint16_t,uint16_t,uint16_t);
#endif
